package sctu.edu.java.year2016.team04.Liliang.day20160522.chapter3_2;

/**
 * Created by asus on 2016/5/22.
 * 编写Java程序，声明两个int型变量，运用三元运算符判断两个变量是否相等，若不相等，求出两个数中较大的。
 */
import java.util.Scanner;
public class sctu_liliang {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入整数a：");
        int a = scan.nextInt();
        System.out.println("请输入整数b：");
        int b = scan.nextInt();
        String check = (a ==b ? "两个整数相等" : "两个整数不相等");
        String max = ( a > b ? "两数中a较大" : "两数中b较大");
        System.out.println(check);
        System.out.println(max);
    }
}